Get-MailContact | sort LastName ----- does not sort
Subject says it all.I enter cmdlet as above but the names are not arrranged by LastName.I have for output (first letter oflast name):M, M, S, C, D, P, P, W, C, H, F, S, H, T, HIf I try:Get-Contact | sort LastNameIt sorts, but without the contact email address (which I need).
December 11th, 2009 10:02pm

Solved - this does the trick (courtesy of a very sharp scripter) :Get-Contact | sort-object LastName | %{ Get-MailContact $_.DistinguishedName | select Name,PrimarySMTPAddress }
Free Windows Admin Tool Kit Click here and download it now
December 12th, 2009 12:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics